/**
 * Created by YL on 2019/10/16.
 */
import request from '@/utils/request'

// data对应post请求 params对应get请求
// 地址列表查询
export function addressList(query) {
  return request({
    url: '/address/addressList',
    method: 'post',
    type: 'json',
    data: query
  })
}

// 单个地址信息
export function addressById(query) {
  return request({
    url: '/address/addressById',
    method: 'post',
    type: 'json',
    data: query
  })
}

// 地址信息编辑
export function addOrUpdateAddress(query) {
  return request({
    url: '/address/addOrUpdateAddress',
    method: 'post',
    type: 'json',
    data: query
  })
}

// 地址信息删除
export function deleteAddress(query) {
  return request({
    url: '/address/deleteAddress',
    method: 'post',
    type: 'json',
    data: query
  })
}
